﻿@model SimCMS.Model.Simadmin
 <div class="pageContent">
	<form method="post" action="/Admin/Save" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
        @Html.HiddenFor(m => m.Id)
			<div class="unit">
				<label>用户名：</label>
                 @Html.TextBoxFor(m => m.UserName, new { @class = "required alphanumeric",@minlength="6",@maxlength="20", @size = "20" })
			</div>
			<div class="unit">
				<label>真实姓名：</label>
                 @Html.TextBoxFor(m => m.RealName, new { @class = "required", @size = "20" })
			</div>
			<div class="unit">
				<label>角色：</label>
                @Html.DropDownListFor(m => m.Simadminrole.Id, ViewData["List"] as SelectList)
			</div>
			<div class="unit">
				<label>Email：</label>
				@Html.TextBoxFor(m => m.Email, new { @class = "required email", @size = "20" })
			</div>
			<div class="unit">
				<label>密码：</label>
				@Html.TextBoxFor(m => m.Password, new {@type="password",@Id="sPassword", @class = "required alphanumeric",@minlength="6",@maxlength="20", @size = "20" })
			</div>
			<div class="unit">
				<label>确认密码：</label>
                <input  type="password" size="20" class="required alphanumeric"  minlength = "6" equalto = "#sPassword" maxlength = "20" />
			</div>
			
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
